package com.cqkjxy.dao;

import com.cqkjxy.commons.dao.AbstractEntityDao;
import com.cqkjxy.entity.TechProjectEntity;
import com.cqkjxy.repositories.TechProjectRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Sort;
import org.springframework.stereotype.Component;

@Component
public class TechProjectDao extends AbstractEntityDao<TechProjectEntity, TechProjectRepository> {

    private final TechProjectRepository techProjectRepository;

    @Autowired
    public TechProjectDao(TechProjectRepository techProjectRepository) {
        this.techProjectRepository = techProjectRepository;
    }

    @Override
    protected TechProjectRepository getRepository() {
        return techProjectRepository;
    }

    @Override
    protected Sort getDefaultSorting() {
        return TechProjectEntity.DEFAULT_SORTING;
    }

    @Override
    protected void deleteRelations(Integer id) {

    }
}
